<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/template/common/header.jsp"%>
<div class="pageContent">
	<form method="post" action="${base }/article!doEdit.action"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this, navTabAjaxDone)">
		<div class="pageFormContent" layoutH="60">
			<input type="hidden" name="article.id" value="${article.id}">
			<div class="unit">
				<label>标题：</label> <input type="text" name="article.title" size="50"
					minlength="4" maxlength="70" class="required"
					value="${article.title }" />
			</div>
			<div class="unit">
				<label>关键字：</label>
				<textarea rows="2" cols="50" name="article.keywords"
					class="required" maxlength="200">${article.keywords }</textarea>
			</div>
			<div class="unit">
				<label>描述：</label>
				<textarea rows="2" cols="50" name="article.description"
					class="required" maxlength="200">${article.description }</textarea>
			</div>
			<div class="unit">
				<label>来源：</label> <input type="text" name="article.source"
					size="30" />
			</div>
			<div class="unit">
				<label>类型：</label> <select name="article.type">
					<option value="1"
						<c:if test="${article.type eq 1 }">selected="selected"</c:if>>文章</option>
					<option value="2"
						<c:if test="${article.type eq 2 }">selected="selected"</c:if>>站点地图</option>
				</select>
			</div>
			<div class="unit">
				<label>内容:</label>
				<textarea target="xheditor" class="{required:true}"
					name="article.content" rows="30" cols="80" style="width: 80%">${article.visitContent}</textarea>
			</div>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">提交</button>
						</div>
					</div></li>
				<li><div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div></li>
			</ul>
		</div>
	</form>

</div>
